Php syntax is divided into single quotes, double quotation marks? This post was last edited by u011523116 on 20:12:13
// A. php
1. a. php: both statements are correct. why?
Does the php language distinguish between single quotes and
single quotes, double quotes, and escape characters in PHP
http://blog.csdn.net/river131/article/details/9186203Category: PHP notes 2013-06-27 11:37 875 people read Comments (0) Favorites report escape characters PHP
PHP single and double quotes
This post was last edited by u011523116 on 2013-08-01 20:12:13
a.php
1.a.php, two sentences are right, why?
PHP language, do not distinguish between single and double quotation marks?
2.b.php, this sentence is wrong, why?
First of all, in the bash script, there are three kinds of quotes
1. Single quotes '2. Double quotes "3. Inverted quotes '
Single quotation markThe two string enclosed in single quotes is an ordinary string that retains its original literal
PHP single quotes and double quotes can modify string data. if the modified string contains a variable (for example, $ name), the biggest difference is that double quotes replace the variable value, the single quotation mark will output it as a
There are three types of quotes in the shell: single quotes, double quotes, and anti-quotes. The single quotation mark ' character nonalphanumeric, enclosed by single quotes, appears as a normal character. When special characters are enclosed in
PHP single and double quotation marks can modify the string type of data, if the decorated string contains variables (example $name), The biggest difference is: double quotation marks will replace the value of the variable, and the single quotation
Let's talk about the difference between single quotes and double quotes in PHP. In fact, I have mentioned the difference and efficiency between single quotes and double quotes in the previous PHP100 video tutorial, but it is still not clear to many
In fact, I have mentioned the difference and efficiency between single quotes and double quotes in the previous PHP100 video tutorial, but it is still not clear to many friends, I always thought that single quotes and double quotes in PHP were
Environment: VirtualBox4.1 + RedHat Linux 6 + Putty0.62
Single quotation mark:
What you can say is what you see: The output of the contents of the single quotation mark, or the output of what is seen in single quotes. Single quotes ' are full
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.